package service

import (
	"EREST/model"
	log "git.edaijia-inc.cn/edaijia/ego/elogger"

	"github.com/gin-gonic/gin"
)

//strongly recommend passing gin.Context to service
func Demo(c *gin.Context, p1 string, p2 int32) (*model.Demo, error) {
	log.Infof("params: %s %d", p1, p2)

	demo := &model.Demo{Name: p1, Age: p2}

	return demo, nil
}
